<?php
/**
 * Folder
 * @author Erko Risthein <erko@risthein.ee>
 * @copyright Copyright (C) 2009 Erko Risthein
 * @link http://erko.risthein.ee/decode/
 * @license http://www.gnu.org/licenses/ GNU General Public License
 * @package decode_explorer
 */
class Folder extends Filesystem {
	/**
	 * @param string $path to the folder
	 */
	function __construct($path) {
		parent::__construct($path);
		//data formatting
		$this->name = Helper::trim_name($this->name);
		$this->url = Helper::remove_rootpath($this->url);
	}
	
	/**
	 * Gets the Folder icon file name
	 * @return string icon file name
	 */
	public static function get_icon() {
		return 'folder.png';
	}
}
?>